﻿/* ===================================
   Eyva Centers - Inner Page Styles
   For SharePoint Style Library
   Upload to: /Style Library/eyva-centers.css
   =================================== */
/* Note: the SharePoint page H1 ("מתחם נג"ר") is hidden via JavaScript in the
   control (VictimsCenter.ascx), targeting only H1 elements outside .vc-wrapper. */
/* === Layout === */
.vc-wrapper .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

/* === Inner Page Hero === */
.vc-wrapper .center-page-hero {
    padding: 0;
    position: relative;
}

.container.imagecontainer {
    display: none;
}

form[action*="/benefits/Victims_of_Hostilities/eyva-centers/Pages/VictimsCenter.aspx"] div#wrapPageContent:before {
    content: "";
    position: absolute;
    background-image: url('/benefits/Victims_of_Hostilities/eyva-centers/PublishingImages/inner-hero.jpg');
    height: 36.7vh;
    width: 100%;
    z-index: -1;
    box-shadow: inset 0 17px 40px -20px var(--color-neutral-400);
    background-position-y: 1em;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position-x: center;
    background-size: 115%;
    top: 9em;
    /* background-color:pink; */
}

form[action*="/benefits/Victims_of_Hostilities/eyva-centers/Pages/VictimsCenter.aspx"] .wrap.sticky + #wrapPageContent:before {
    top: 0em;
}

.opener-txt {
    margin: 0em 0;
    border-bottom: 1px solid var(--color-border);
}

.vc-wrapper .hero-top-bar {
    margin-bottom: 1.5rem;
    position: absolute;
}

.vc-wrapper .hero-with-image {
    display: grid;
    align-items: center;
    gap: 2rem;
    grid-template-columns: 2.04fr 1fr;
}

.vc-wrapper .hero-text-content {
    flex: 1;
}

.vc-wrapper .hero-image-placeholder {
    height: 25vh;
    background: #e5e7eb;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6b7280;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    /* width: 28em; */
}

.vc-wrapper .hero-image-placeholder .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.vc-wrapper .center-page-hero .center-page-title {
    font-size: 1.875rem;
    font-weight: 700;
    font-family: 'Assistant', 'Segoe UI', sans-serif;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.vc-wrapper .center-page-hero .center-page-location {
    font-size: 1.125rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.vc-wrapper .center-page-hero .center-page-location i {
    color: #2563eb;
}

/* === Title Row with Logo === */
.vc-wrapper .center-page-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.vc-wrapper .center-page-title-row .center-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.vc-wrapper .center-page-title-row .title-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vc-wrapper .center-page-title-row .center-page-title {
    margin-bottom: 0;
}

.vc-wrapper .center-page-title-row .center-page-location {
    margin: 0;
}

/* === Info Grid (Details + Sidebar) === */
.vc-wrapper .center-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 5rem 0 0;
}

/* === Center Details === */
.vc-wrapper .center-details h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.vc-wrapper .center-details p {
    font-size: 1rem;
    line-height: 1.75;
    color: #1f2937;
    margin-bottom: 2rem;
}

.vc-wrapper .center-details .detail-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
}

.vc-wrapper .center-details ul {
    padding-inline-start: 1.25rem; margin-bottom: 2rem;
    list-style-type: disc;
}

.vc-wrapper .center-details li {
    padding: 0.25rem 0;
    line-height: 1.75;
    font-size: 1rem;
    color: #1f2937;
}

/* === Sidebar === */
.vc-wrapper .center-sidebar {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 1rem;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.center-details {
    line-height: var(--line-height-normal);
    font-size: var(--font-size-base);
}

.vc-wrapper .center-sidebar h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.25rem;
    margin-top: 0;
    text-align: right;
}

.vc-wrapper .center-sidebar .info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #1f2937;
    flex-direction: row;
}

.vc-wrapper .center-sidebar .info-item i {
    color: var(--color-primary-500);
    margin-top: 0.2rem;
    min-width: 1.2em;
    text-align: center;
    font-size: 1rem;
}

.vc-wrapper .center-sidebar .info-item span {
    flex: 1;
    text-align: right;
}

.vc-wrapper .center-sidebar .info-item a {
    color: var(--color-text-link);
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    text-align: right;
    text-decoration: none!important;
}

.vc-wrapper .center-sidebar .info-item a:hover {
    text-decoration: underline!IMPORTANT;
}

/* === Back Link === */
.vc-wrapper .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.vc-wrapper .back-link:hover {
    text-decoration: underline;
}

.vc-wrapper .back-link i {
    font-size: 0.875rem;
}

/* === Responsive === */
@media (max-width: 992px) {
    .vc-wrapper .center-info-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column-reverse;
    }

    .vc-wrapper .center-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {

.opener-txt { margin-bottom:2em}
    
.vc-wrapper .hero-top-bar {
    margin-bottom: 1.5rem;
    position: unset;
}
    
    .vc-wrapper .center-page-hero .center-page-title {
        font-size: 1.5rem;
    }

    .vc-wrapper .hero-with-image {
        flex-direction: column;
        display: flex;
        align-items: flex-start;
    }

    .vc-wrapper .hero-image-placeholder {
        width: 100%;
        height: 160px;
    }

    .vc-wrapper .center-page-title-row .center-logo {
        width: 60px;
        height: 60px;
    }

    .vc-wrapper .center-info-grid {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .vc-wrapper .center-sidebar .info-item {
        font-size: 0.875rem;
    }
}

/* ===================================
   Centers Lobby - Centers by Region
   (VictimsCenterList control)
   =================================== */
/* Region group */
.vc-wrapper .region-group {
    margin-bottom: 1.25rem;
    padding: 1.75rem;
    border-top: 1px solid #e5e7eb;
}

/* Region title with icon */
.vc-wrapper .region-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4b5563;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.vc-wrapper .region-title i {
    color: #2563eb;
    font-size: 1rem;
}

/* Centers grid */
.vc-wrapper .centers-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1rem;
}

/* Center card */
.vc-wrapper .center-card {
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background: #ffffff;
    border: 1px solid #dfc1d9;
}

.vc-wrapper .center-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Center link (whole card is clickable) */
.vc-wrapper .center-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: #1f2937;
    gap: 0;
    flex-direction: row;
    position: relative;
    padding-right: 5rem;
    flex-wrap: wrap;
}

.vc-wrapper .center-link:hover .center-name, .vc-wrapper .center-link:focus .center-name {
    color: #2563eb;
}

/* Center name */
.vc-wrapper .center-name {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
    width: 100%;
}

/* Center city */
.vc-wrapper .center-city {
    font-size: 1rem;
    color: #4b5563;
    font-weight: 400;
    white-space: nowrap;
}

/* Center logo (positioned on the right side of the card) */
.vc-wrapper .center-link .center-logo {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .vc-wrapper .centers-list {
        grid-template-columns: 1fr;
    }

    .vc-wrapper .region-title {
        font-size: 1.125rem;
    }

    .vc-wrapper .region-group {
        padding: 1.25rem;
    }
}

/* ===================================
   Lobby - Static Section Backgrounds
   (applied to static page content, not inside .vc-wrapper)
   =================================== */
/* Centers by region section - warm pink/orange gradient background */
.centers-regions {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #ffeadf 0%, #fff9f5 50%, #ebd2e9 100%);
}

/* When the region list is the control wrapper, constrain content width */
.vc-wrapper.centers-regions .region-group {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* Eligibility ("מי זכאי") section - light blue background */
.eligibility-section {
    padding: 3rem 1.25rem 5rem;
    background: #eaf4fd;
    position: relative;
    overflow: hidden;
    margin-bottom: -8em;
    box-shadow: 0 15px 1em #d5e8fc inset;
}

@media (max-width: 1280px) {
    form[action*="/benefits/Victims_of_Hostilities/eyva-centers/Pages/VictimsCenter.aspx"] div#wrapPageContent:before {
        top: 8em;
        height: 39.7vh;
        background-position-y: 1em;
    }
        form[action*="/benefits/Victims_of_Hostilities/eyva-centers/Pages/VictimsCenter.aspx"] .wrap.sticky + #wrapPageContent: before {
            background-position-y: 4em;
        }
    }



@media (min-width:1000px)
{
.center-details  {column-count:2}      /* ---- מייצר שתי עמודות ----  */
.detail-section.detail-about {column-span:all}        /*--- מבטל שתי עמודות "לאודות" ---*/
}
